
<?php
//$country=new country;
/*
	TODO clean url fix
*/
printformheader('',$_GET['cmd']);
begin_form('','','',TRUE);

$o['label']='Email';
p_input('user_name',$o,$e);

$o['label']='Password';
$o['password']=TRUE;
p_input('user_password',$o,$e);
$e['login']="a";
p_hidden('login',$o,$e);
if(empty($_POST['referrer']))
{
	$e['referrer']=$_SERVER["HTTP_REFERER"];
}
else
{
	$e['referrer']=$_POST['referrer'];	
}
if($conf->absolute_path.'user/logout'==$e['referrer'] || $conf->absolute_path.'user/logout/duplicate'==$e['referrer'])
{
	$e['referrer']=$conf->absolute_path;
}
p_hidden('referrer',$o,$e);
?>
<hr />
<?PHP
printsubmit("Login");
end_form('');
global $conf;

printformfooter(NULL,NULL,NULL,NULL,NULL,NULL);

?>
<p><a href='user/password'>Forgot your Password</a>?</p>

